package cn.haoxsf.app.system.mapper;

import cn.haoxsf.app.system.entity.MemberRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 后台用户角色表 Mapper 接口
 * </p>
 *
 * @author Ele  qvbanfm@qq.com
 * @since 2020-01-06
 */
public interface MemberRoleMapper extends BaseMapper<MemberRole> {
    /**
     * 查询用户下的所有权限
     * @param memberId
     * @return
     */
    List<MemberRole> findRoleByMemberId(@Param("memberId") Long memberId);
}
